//
//  CDCollections.h
//  freeLance
//
//  Created by s.zalozniy on 3/29/13.
//  Copyright (c) 2013 Mozi Development. All rights reserved.
//

#import <CoreData/CoreData.h>

#import "Collections.h"

@class CDCategories, CDImages, CDProducts;

@interface CDCollections : NSManagedObject

@property (nonatomic, retain) NSNumber * ident;
@property (nonatomic, retain) NSNumber * category_id;
@property (nonatomic, retain) NSNumber * image_id;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSNumber * isSynchronized;
@property (nonatomic, retain) NSSet *category;
@property (nonatomic, retain) NSSet *image;
@property (nonatomic, retain) NSSet *products;

+(CDCollections *) colletionWithCollectionInfo:(Collections *)collectionInfo inContext:(NSManagedObjectContext *)context;
-(void) updateWithCollecionInfo:(Collections *)collectionInfo inContext:(NSManagedObjectContext *)context;


@end

@interface CDCollections (CoreDataGeneratedAccessors)

- (void)addCategoryObject:(CDCategories *)value;
- (void)removeCategoryObject:(CDCategories *)value;
- (void)addCategory:(NSSet *)values;
- (void)removeCategory:(NSSet *)values;

- (void)addImageObject:(CDImages *)value;
- (void)removeImageObject:(CDImages *)value;
- (void)addImage:(NSSet *)values;
- (void)removeImage:(NSSet *)values;

- (void)addProductsObject:(CDProducts *)value;
- (void)removeProductsObject:(CDProducts *)value;
- (void)addProducts:(NSSet *)values;
- (void)removeProducts:(NSSet *)values;

@end
